package com.study.myteach.责任链模式;

/**
 * @author lk
 * @date 2021/4/23 0023 11:24
 * @description:
 */
public class Manager extends Role {

    private final int PRICE = 10000;

    @Override
    public void processOrder(Order order) {
        if (order.getPrice() <= PRICE) {
            System.out.println("经理处理订单");
        } else {
            if (succesor != null) {
                succesor.processOrder(order);
            }
        }
    }
}
